package com.erp.erp_entitys.User;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 * 用户表，即员工表
 */
 public class UserEntity implements Serializable {
     private String id;

    /**
     * 用户姓名
     */
     private String name;

    /**
     * 用户编号
     */
     private String code;

    /**
     * 英文名称
     */
     private String englishName;

    /**
     * 部门编码
     */
     private String departmentCode;

    /**
     * 角色
     */
     private String roles;

    /**
     * 性别（0：女；1：男）
     */
     private Integer sex;

    /**
     * 邮件地址
     */
     private String email;

    /**
     * 家庭地址
     */
     private String address;

    /**
     * 生日
     */
     private Date birthday;

    /**
     * 电话
     */
     private String telephone;

    /**
     * 手机
     */
     private String phone;

    /**
     * QQ
     */
     private String qq;

    /**
     * MSN
     */
     private String msn;

    /**
     * skype
     */
     private String skype;

    /**
     * 阿里旺旺
     */
     private String ww;

    /**
     * 中文签字章
     */
     private String chinaSealUrl;

    /**
     * 英文签字章
     */
     private String englishSealUrl;

    /**
     * 备注、描述、说明
     */
     private String desc;

    /**
     * 创建者（员工编号）
     */
     private String creator;

    /**
     * 创建时间
     */
     private Date createTime;

    /**
     * 头像
     */
     private String headimg;

    /**
     * 自定义角色(该用户所能管理的人员)
     */
    private String customerRole;

    /**
     * 是否删除(1:删除)
     */
     private Boolean deleteflag;

    private static final long serialVersionUID = 1L;

    public String getCustomerRole() {
        return customerRole;
    }

    public void setCustomerRole(String customerRole) {
        this.customerRole = customerRole;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getEnglishName() {
        return englishName;
    }

    public void setEnglishName(String englishName) {
        this.englishName = englishName;
    }

    public String getDepartmentCode() {
        return departmentCode;
    }

    public void setDepartmentCode(String departmentCode) {
        this.departmentCode = departmentCode;
    }

    public String getRoles() {
        return roles;
    }

    public void setRoles(String roles) {
        this.roles = roles;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getMsn() {
        return msn;
    }

    public void setMsn(String msn) {
        this.msn = msn;
    }

    public String getSkype() {
        return skype;
    }

    public void setSkype(String skype) {
        this.skype = skype;
    }

    public String getWw() {
        return ww;
    }

    public void setWw(String ww) {
        this.ww = ww;
    }

    public String getChinaSealUrl() {
        return chinaSealUrl;
    }

    public void setChinaSealUrl(String chinaSealUrl) {
        this.chinaSealUrl = chinaSealUrl;
    }

    public String getEnglishSealUrl() {
        return englishSealUrl;
    }

    public void setEnglishSealUrl(String englishSealUrl) {
        this.englishSealUrl = englishSealUrl;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

    public Boolean getDeleteflag() {
        return deleteflag;
    }

    public void setDeleteflag(Boolean deleteflag) {
        this.deleteflag = deleteflag;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserEntity other = (UserEntity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getEnglishName() == null ? other.getEnglishName() == null : this.getEnglishName().equals(other.getEnglishName()))
            && (this.getDepartmentCode() == null ? other.getDepartmentCode() == null : this.getDepartmentCode().equals(other.getDepartmentCode()))
            && (this.getRoles() == null ? other.getRoles() == null : this.getRoles().equals(other.getRoles()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getBirthday() == null ? other.getBirthday() == null : this.getBirthday().equals(other.getBirthday()))
            && (this.getTelephone() == null ? other.getTelephone() == null : this.getTelephone().equals(other.getTelephone()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getQq() == null ? other.getQq() == null : this.getQq().equals(other.getQq()))
            && (this.getMsn() == null ? other.getMsn() == null : this.getMsn().equals(other.getMsn()))
            && (this.getSkype() == null ? other.getSkype() == null : this.getSkype().equals(other.getSkype()))
            && (this.getWw() == null ? other.getWw() == null : this.getWw().equals(other.getWw()))
            && (this.getChinaSealUrl() == null ? other.getChinaSealUrl() == null : this.getChinaSealUrl().equals(other.getChinaSealUrl()))
            && (this.getEnglishSealUrl() == null ? other.getEnglishSealUrl() == null : this.getEnglishSealUrl().equals(other.getEnglishSealUrl()))
            && (this.getDesc() == null ? other.getDesc() == null : this.getDesc().equals(other.getDesc()))
            && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getHeadimg() == null ? other.getHeadimg() == null : this.getHeadimg().equals(other.getHeadimg()))
            && (this.getDeleteflag() == null ? other.getDeleteflag() == null : this.getDeleteflag().equals(other.getDeleteflag()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getEnglishName() == null) ? 0 : getEnglishName().hashCode());
        result = prime * result + ((getDepartmentCode() == null) ? 0 : getDepartmentCode().hashCode());
        result = prime * result + ((getRoles() == null) ? 0 : getRoles().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getBirthday() == null) ? 0 : getBirthday().hashCode());
        result = prime * result + ((getTelephone() == null) ? 0 : getTelephone().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getQq() == null) ? 0 : getQq().hashCode());
        result = prime * result + ((getMsn() == null) ? 0 : getMsn().hashCode());
        result = prime * result + ((getSkype() == null) ? 0 : getSkype().hashCode());
        result = prime * result + ((getWw() == null) ? 0 : getWw().hashCode());
        result = prime * result + ((getChinaSealUrl() == null) ? 0 : getChinaSealUrl().hashCode());
        result = prime * result + ((getEnglishSealUrl() == null) ? 0 : getEnglishSealUrl().hashCode());
        result = prime * result + ((getDesc() == null) ? 0 : getDesc().hashCode());
        result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getHeadimg() == null) ? 0 : getHeadimg().hashCode());
        result = prime * result + ((getDeleteflag() == null) ? 0 : getDeleteflag().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", code=").append(code);
        sb.append(", englishName=").append(englishName);
        sb.append(", departmentCode=").append(departmentCode);
        sb.append(", roles=").append(roles);
        sb.append(", sex=").append(sex);
        sb.append(", email=").append(email);
        sb.append(", address=").append(address);
        sb.append(", birthday=").append(birthday);
        sb.append(", telephone=").append(telephone);
        sb.append(", phone=").append(phone);
        sb.append(", qq=").append(qq);
        sb.append(", msn=").append(msn);
        sb.append(", skype=").append(skype);
        sb.append(", ww=").append(ww);
        sb.append(", chinaSealUrl=").append(chinaSealUrl);
        sb.append(", englishSealUrl=").append(englishSealUrl);
        sb.append(", desc=").append(desc);
        sb.append(", creator=").append(creator);
        sb.append(", createTime=").append(createTime);
        sb.append(", headimg=").append(headimg);
        sb.append(", deleteflag=").append(deleteflag);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}